package com.bjsxt.dto;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author:liao
 * @Description:TODO
 * @date:2020/12/21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "com-bjsxt-dto-MedicinesDto")
@NoArgsConstructor
@AllArgsConstructor
public class MedicinesDto extends BaseDto {
    // 药品id
    @ApiModelProperty(value = "药品id")
    private Long medicinesId;
    // 药品编号
    @ApiModelProperty(value = "药品编号")
    @NotBlank(message = "药品编号不能为空")
    private String medicinesNumber;
    // 药品名称
    @ApiModelProperty(value = "药品名称")
    @NotBlank(message = "药品名称不能为空")
    private String medicinesName;
    // 药品分类
    @ApiModelProperty(value = "药品分类")
    @NotBlank(message = "药品分类不能为空")
    private String medicinesType;
    // 处方类型
    @NotBlank(message = "处方类型不能为空")
    @ApiModelProperty(value = "处方类型")
    private String prescriptionType;
    // 处方价格
    @NotNull(message = "处方价格不能为空")
    @ApiModelProperty(value = "处方价格")
    private BigDecimal prescriptionPrice;
    // 单位
    @ApiModelProperty(value = "单位(g/条)")
    private String unit;
    // 换算量
    @ApiModelProperty(value = "换算量")
    private Integer conversion;
    // 搜索关键字
    @ApiModelProperty(value = "关键字")
    @NotBlank(message = "搜索关键字不能为空")
    private String keywords;
    // 生产厂家id
    @ApiModelProperty(value = "生产厂家id")
    @NotBlank(message = "生产厂家id为空")
    private String producterId;
    // 药品状态 0正常 1停用
    @ApiModelProperty(value = "药品状态")
    @NotBlank(message = "药品状态不能为空")
    private String status;
    // 药品库存量
    @ApiModelProperty(value = "药品库存量")
    @NotNull(message = "库存量不能为空")
    private Long medicinesStockNum;
    // 药品预警值
    @ApiModelProperty(value = "药品预警值")
    @NotNull(message = "药品预警值不能为空")
    private Long medicinesStockDangerNum;
}
